const InfoManage = ()=>import('@/components/FactoryInfoManage/InfoManage')
const RegisteCheck = ()=>import('@/components/FactoryInfoManage/RegisteCheck')
const TotalFactory = ()=>import('@/components/FactoryInfoManage/TotalFactory')
const EquipmentCheck = ()=>import('@/components/FrontedEquipment/EquipmentCheck')
const EquipmentMange = ()=>import('@/components/FrontedEquipment/EquipmentMange')
const EquipmentTotal = ()=>import('@/components/FrontedEquipment/EquipmentTotal')
const AlarmMessage = ()=>import('@/components/MessageMage/AlarmMessage')
const ChatInfo = ()=>import('@/components/MessageMage/ChatInfo')
const InformMessage = ()=>import('@/components/MessageMage/InformMessage')
const MonitoringCheck = ()=>import('@/components/MobileMonitoring/MonitoringCheck')
const MonitoringManage = ()=>import('@/components/MobileMonitoring/MonitoringManage')
const MonitoringTotal = ()=>import('@/components/MobileMonitoring/MonitoringTotal')
const AddServers = ()=>import('@/components/ServerMange/AddServers')
const ServerInfo = ()=>import('@/components/ServerMange/ServerInfo')
const LoginEquipment = ()=>import('@/components/SystemInfo/LoginEquipment')
const LoginUserinfo = ()=>import('@/components/SystemInfo/LoginUserinfo')
const SystemRunninginfo = ()=>import('@/components/SystemInfo/SystemRunninginfo')
const CallbackMange = ()=>import('@/components/TerraceManage/CallbackMange')
const TerracePublish = ()=>import('@/components/TerraceManage/TerracePublish')
const UsersInfo = ()=>import('@/components/UsersMange/UsersInfo')
const UsersTotal = ()=>import('@/components/UsersMange/UsersTotal')

import ManageIndex from '@/components/ManageIndex'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Personal from '@/components/Personal'
import Messages from '@/components/Messages'

export default[{
  path:'/',
  redirect:'/login'
},
{
  path:'/login',
  components:{
    default:Login
  },
},
{
  path:'/main',
  name:'manageIndex',
  isParent:true,
  component:ManageIndex,
  children:[{
    path:'/main/FactoryInfoManage/registeCheck',
    name:'registeCheck',
    component:RegisteCheck
  },{
    path:'/main/FactoryInfoManage/infoManage',
    name:'infoManage',
    component:InfoManage
  },{
    path:'/main/FactoryInfoManage/totalFactory',
    name:'totalFactory',
    component:TotalFactory
  },{
    path:'/main/FrontedEquipment/equipmentCheck',
    name:'equipmentCheck',
    component:EquipmentCheck
  },
  {
    path:'/main/FrontedEquipment/equipmentMange',
    name:'equipmentMange',
    component:EquipmentMange
  },{
    path:'/main/FrontedEquipment/equipmentTotal',
    name:'equipmentTotal',
    component:EquipmentTotal
  },
  {
    path:'/main/MessageMage/alarmMessage',
    name:'alarmMessage',
    component:AlarmMessage
  },
  {
    path:'/main/MessageMage/chatInfo',
    name:'chatInfo',
    component:ChatInfo
  },
  {
    path:'/main/MessageMage/informMessage',
    name:'informMessage',
    component:InformMessage
  },
  {
    path:'/main/MobileMonitoring/monitoringCheck',
    name:'monitoringCheck',
    component:MonitoringCheck
  },
  {
    path:'/main/MobileMonitoring/monitoringManage',
    name:'monitoringManage',
    component:MonitoringManage
  },
  {
    path:'/main/MobileMonitoring/monitoringTotal',
    name:'monitoringTotal',
    component:MonitoringTotal
  },
  {
    path:'/main/ServerMange/addServers',
    name:'addServers',
    component:AddServers
  },
  {
    path:'/main/ServerMange/serverInfo',
    name:'serverInfo',
    component:ServerInfo
  },
  {
    path:'/main/SystemInfo/loginEquipment',
    name:'loginEquipment',
    component:LoginEquipment
  },
  {
    path:'/main/SystemInfo/loginUserinfo',
    name:'loginUserinfo',
    component:LoginUserinfo
  },
  {
    path:'/main/SystemInfo/systemRunninginfo',
    name:'systemRunninginfo',
    component:SystemRunninginfo
  },
  {
    path:'/main/TerraceManage/callbackMange',
    name:'callbackMange',
    component:CallbackMange
  },
  {
    path:'/main/TerraceManage/terracePublish',
    name:'terracePublish',
    component:TerracePublish
  },
  {
    path:'/main/UsersMange/usersInfo',
    name:'usersInfo',
    component:UsersInfo
  },
  {
    path:'/main/UsersMange/usersTotal',
    name:'usersTotal',
    component:UsersTotal
  },
  {
    path:'/main/home',
    isHeader:true,
    title:'返回首页',
    icon:"&#xe654;",
    components:{
      default:Home
    },
    meta:{
      isAuthRequired:true
    }
  },
  {
    path:'/main/personal',
    isHeader:true,
    title:'个人中心',
    icon:"&#xe656;",
    components:{
      default:Personal
    },
  },
  {
    path:'/main/messages',
    isHeader:true,
    title:"消息中心",
    icon:"&#xe659;",
    components:{
      default:Messages
    },
  }
]
}
]
